home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / misc / gpt34doc.zip / 0FAQ next >
Internet Message Format  |  1993-05-25  |  23KB

  1. Path: senator-bedfellow.mit.edu!enterpoop.mit.edu!gatech!howland.reston.ans.net!ira.uka.de!rz.uni-karlsruhe.de!fg70.rz.uni-karlsruhe.de!ig25
  2. From: ig25@fg70.rz.uni-karlsruhe.de (Thomas Koenig)
  3. Newsgroups: comp.graphics.gnuplot,comp.answers,news.answers
  4. Subject: comp.graphics.gnuplot FAQ (Frequent Answered Questions)
  5. Supersedes: <comp-graphics-gnuplot-faq_736159240@fg70.rz.uni-karlsruhe.de>
  6. Followup-To: comp.graphics.gnuplot
  7. Date: 14 May 1993 07:59:17 GMT
  8. Organization: University of Karlsruhe, Germany
  9. Lines: 544
  10. Approved: news-answers-request@MIT.Edu
  11. Message-ID: <comp-graphics-gnuplot-faq_737366355@fg70.rz.uni-karlsruhe.de>
  12. Reply-To: ig25@rz.uni-karlsruhe.de
  13. NNTP-Posting-Host: fg70.rz.uni-karlsruhe.de
  14. Mime-Version: 1.0
  15. Content-Type: text/plain; charset=iso-8859-1
  16. Content-Transfer-Encoding: 8bit
  17. Summary: This is the FAQ (Frequently Answered Questions) list of the
  18.      comp.graphics.gnuplot newsgroup, which discusses the
  19.          gnuplot program for plotting 2D - and 3D - graphs.
  20. Keywords: computer graphics, gnuplot
  21. Xref: senator-bedfellow.mit.edu comp.graphics.gnuplot:1239 comp.answers:706 news.answers:8446
  22.  
  23. Archive-name: graphics/gnuplot-faq
  24. Version: $Header: comp-graphics-gnuplot,v 1.13 93/05/13 10:07:52 ig25 Exp $
  25.  
  26. This is the FAQ (Frequently Answered Questions) list of the
  27. comp.graphics.gnuplot newsgroup, which discusses the gnuplot program for
  28. plotting 2D - and 3D - graphs.
  29.  
  30. Most of the information in this document came from public discussion on
  31. comp.graphics.gnuplot; quotations are believed to be in the public
  32. domain.
  33.  
  34. Here's a list of the questions.  If you are looking for the answer for a
  35. specific question, look for the string Qx.x:  at the beginning of a line,
  36. with x.x being the question number.
  37.  
  38. Questions:
  39.  
  40. Section 0: Meta - Questions
  41. Q0.1: Where do I get this document?
  42. Q0.2: Where do I send comments about this document?
  43.  
  44. Section 1: General Information
  45. Q1.1: What is gnuplot?
  46. Q1.2: How did it come about and why is it called gnuplot?
  47. Q1.3: Does gnuplot have anything to do with the FSF and the GNU project?
  48. Q1.4: What does gnuplot offer?
  49. Q1.5: Is gnuplot suitable for batch processing?
  50. Q1.6: Can I run gnuplot on my computer?
  51.  
  52. Section 2: Setting it up
  53. Q2.1: What is the current version of gnuplot?
  54. Q2.2: Where can I get gnuplot?
  55. Q2.3: How do I get gnuplot to compile on my system?
  56. Q2.4: What documentation is there, and how do I get it?
  57.  
  58. Section 3: Working with it
  59. Q3.1: How do I get help?
  60. Q3.2: How do I print out my graphs?
  61. Q3.3: How do I include my graphs in <word processor>?
  62.  
  63. Section 4: Wanted Features in gnuplot
  64. Q4.1: Does gnuplot have hidden line removal?
  65. Q4.2: Does gnuplot support boxes?
  66.  
  67. Section 5: Miscellaneous
  68. Q5.1: I've found a bug, what do I do?
  69. Q5.2: Can I use gnuplot routines for my own programs?
  70. Q5.3: What extensions have people made to gnuplot?  Where can I get them?
  71. Q5.4: Can I do heavy - duty data processing with gnuplot?
  72. Q5.5: I have ported gnuplot to another system, or patched it.  What do I do?
  73. Q5.6: Where can I get a beta version of gnuplot 3.3?
  74.  
  75. Section 6: Making life easier
  76. Q6.1: How do I plot two functions in non - overlapping regions?
  77. Q6.2: How do I run my data through a filter before plotting?
  78. Q6.3: How do I make it easier to use gnuplot with LaTeX?
  79. Q6.4: Why does gnuplot ignore my very small numbers?
  80. Q6.5: How do I save and restore my settings?
  81.  
  82. Section 7: Credits
  83.  
  84. Questions and Answers:
  85.  
  86. Section 0: Meta - Questions.
  87.  
  88. Q0.1: Where do I get this document?
  89.  
  90. This document is posted about once every two weeks to the newsgroups
  91. comp.graphics.gnuplot, comp.answers and news.answers.  Like many other
  92. FAQ's, it is available via anonymous ftp from rtfm.mit.edu [18.70.0.226]
  93. from the directory /pub/usenet/news.answers under the Archive-Name:  at
  94. the top of the article, graphics/gnuplot-faq.
  95.  
  96. Q0.2: Where do I send comments about this document?
  97.  
  98. Send comments, suggestions etc. via e-mail to Thomas Koenig,
  99. ig25@rz.uni-karlsruhe.de or ig25@dkauni2.bitnet.
  100.  
  101. Section 1: General Information
  102.  
  103. Q1.1: What is gnuplot?
  104.  
  105. Gnuplot is a command-driven interactive function plotting program.  It
  106. can be used to plot functions and data points in both two- and three-
  107. dimensional plots in many different formats, and will accomodate many of
  108. the needs of today's scientists for graphic data representation.
  109. Gnuplot is copyrighted, but freely distributable; you don't have to pay
  110. for it.
  111.  
  112. Q1.2: How did it come about and why is it called gnuplot?
  113.  
  114. The authors of gnuplot are:
  115.  
  116. Thomas Williams, Colin Kelley, Russell Lang, Dave Kotz, John Campbell,
  117. Gershon Elber, Alexander Woo and many others.
  118.  
  119. The following quote comes from Thomas Williams:
  120.  
  121. I was taking a differential equation class and Colin was taking
  122. Electromagnetics, we both thought it'd be helpful to visualize the
  123. mathematics behind them.  We were both working as sys admin for an EE
  124. VLSI lab, so we had the graphics terminals and the time to do some
  125. coding.  The posting was better received than we expected, and prompted
  126. us to add some, albeit lame, support for file data.
  127.  
  128. Any reference to GNUplot is incorrect.  The real name of the program
  129. is "gnuplot".  You see people use "Gnuplot" quite a bit because many
  130. of us have an aversion to starting a sentence with a lower case
  131. letter, even in the case of proper nouns and titles.  Gnuplot is not
  132. related to the GNU project or the FSF in any but the most peripheral
  133. sense.  Our software was designed completely independently and the
  134. name "gnuplot" was actually a compromise.  I wanted to call it
  135. "llamaplot" and Colin wanted to call it "nplot."  We agreed that
  136. "newplot" was acceptable but, we then discovered that there was an
  137. absolutely ghastly pascal program of that name that the Computer
  138. Science Dept. occasionally used.  I decided that "gnuplot" would make
  139. a nice pun and after a fashion Colin agreed.
  140.  
  141. Q1.3: Does gnuplot have anything to do with the FSF and the GNU project?
  142.  
  143. No.  Gnuplot is not covered by the General Public License, either.
  144.  
  145. Q1.4: What does gnuplot offer?
  146.  
  147. - Plotting of two - dimensional functions and data points in many different
  148.   styles (points, lines, error bars)
  149. - plotting of three - dimensional data points and surfaces in many
  150.   different styles (contour plot, mesh).
  151. - support for complex arithmetic
  152. - self - defined functions
  153. - support for a large number of operating systems, graphics file formats
  154.   and devices
  155. - extensive on-line help
  156. - labels for title, axes, data points
  157. - command line editing and history on most platforms
  158.  
  159. Q1.5: Is gnuplot suitable for batch processing?
  160.  
  161. Yes.  You can read in files from the command line, or you can redirect
  162. your standard input to read from a file.  Both data and command files
  163. can be generated automatically, from data acquisition programs or
  164. whatever else you use.
  165.  
  166. Q1.6: Can I run gnuplot on my computer?
  167.  
  168. Gnuplot is available for a number of platforms.  These are:  UNIX (X11
  169. and NeXTSTEP), VAX/VMS, OS/2, MS-DOS, Amiga, MS-Windows, OS-9/68k and
  170. the Macintosh.  Modifications for NEC 8901 are said to exist (where?).
  171. A version for the Atari ST exists at atari.archive.umich.edu, but is
  172. unstable.
  173.  
  174. Section 2: Setting it up
  175.  
  176. Q2.1: What is the current version of gnuplot?
  177.  
  178. The current version of gnuplot is 3.2, patchlevel 2.  Version 3.3
  179. is currently in beta test.  The release will be Version 3.4.
  180.  
  181. Q2.2: Where can I get gnuplot?
  182.  
  183. All of the later addresses refer to ftp sites.  Please note that it is
  184. preferable for you to use the symbolic name, rather than the IP address
  185. given in brackets, because that address is much more subject to change.
  186.  
  187. The official distribution site for the gnuplot source is dartmouth.edu
  188. [129.170.16.4], the file is called /pub/gnuplot/gnuplot.3.2.tar.Z.
  189. Official mirrors of that distribution are (for Australia)
  190. monu1.cc.monash.edu.au [130.194.1.101] and (for Europe) irisa.irisa.fr
  191. [131.254.2.3].  You can also get it from your friendly neighbourhood
  192. comp.sources.misc archive.
  193.  
  194. MS-DOS binaries are available from oak.oakland.edu (North America)
  195. [141.210.10.117] as pub/msdos/plot/gnuplt32.zip, garbo.uwasa.fi (Europe)
  196. [128.214.87.1] as /pc/plot/gnup32.zip and archie.au (Australia)
  197. [139.130.4.6] as micros/pc/oak/plot/gnuplt32.zip.  A version for MS-DOS
  198. with at least a 386 is to be found at simtel-20 and its numerous
  199. mirrors, for example
  200.  
  201. wuarchive.wustl.edu:/mirrors/msdos/plot/gplot386.zip [128.252.135.4]
  202. sun0.urz.uni-heidelberg.de:/pub/msdos/simtel/plot/gplot386.zip
  203.     [129.206.100.126]
  204. isfs.kuis.kyoto-u.ac.jp:/mirrors/simtel20.msdos/plot [130.54.20.1]
  205.  
  206. OS/2 2.0 binaries are at ftp-os2.nmsu.edu [128.123.35.151], in
  207. /pub/os2/2.x/unix/gnu/gplt33b2.zip .
  208.  
  209. Amiga sources and binaries are available from ux1.cso.uiuc.edu
  210. [128.174.5.59] as /pub/amiga/fish/f7/ff701/gnuplot.lzh.
  211.  
  212. The NeXTSTEP front-end can be found at sonata.cc.purdue.edu and
  213. cs.orst.edu.
  214.  
  215. An MS-Windows Version is available, among other servers, from
  216. ftp.cica.indiana.edu:/pub/pc/win3/uploads/?????/wgnuplot.zip, where the
  217. ?????  part refers to the date the latest upload happened (JAN93, for
  218. example).  Please note that wgpt3382.zip is an extremely early alpha
  219. version and should not be used.  A Windows version is included in the
  220. 3.3 beta release and will be in 3.4.
  221.  
  222. A version for OS-9/68K can be found at cabrales.cs.wisc.edu
  223. [128.105.36.20] as /pub/OSK/GRAPHICS/gnuplot32x.tar.Z; it includes both
  224. X-Windows and non - X-windows versions.
  225.  
  226. A version of gnuplot for the Macintosh is included in the gpcontrb
  227. file, or can be found at wuarchive.wustl.edu [128.252.135.4], in
  228. edu/math/mac/graphingAids, as MacGnuPlot3.2.sea.hqx and
  229. MacGnuPlotPackage3.2.sea.hqx.
  230.  
  231. People without ftp access can use an ftp-mail server; send mail to
  232. bitftp@pucc.bitnet (for BITNET only) or ftpmail@decwrl.dec.com with the
  233. word 'help' in the mail body for more information.
  234.  
  235. It is a good idea to look for a nearby ftp site when downloading things.
  236. You can use archie for this.  See if an archie client is installed at
  237. your system (by simply typing archie at the command prompt), or send
  238. mail to archie@sura.net with the word 'help' in both the subject line
  239. and the body of the mail.  However, be aware that the version you find
  240. at a near ftp site may well be out of date; check the last modification
  241. date and the number of bytes against the newest release at one of the
  242. official servers.
  243.  
  244. Q2.3: How do I get gnuplot to compile on my system?
  245.  
  246. As you would any other installation.  Read the files README and
  247. README.Install, edit the Makefile according to taste, and run make or
  248. whatever is suitable for your operating system.
  249.  
  250. If you get a complaint about a missing file libplot.a or something
  251. similar when building gnuplot for x11, remove -DUNIXPLOT from the
  252. TERMFLAGS= line, remove -lplot from the LIBS= line and run again.  If
  253. you are making x11 on a sun, type 'make x11_sun'.
  254.  
  255. Q2.4: What documentation is there, and how do I get it?
  256.  
  257. The documentation is included in the source distribution.  Look at the
  258. docs subdirectory, where you'll find
  259.  
  260.  - a unix man page, which says how to start gnuplot
  261.  - a help file, which also can be printed as a manual
  262.  - a tutorial on using gnuplot with LaTeX
  263.  - a quick reference summary sheet for TeX only
  264.  
  265. PostScript copies of the documentation can be ftp'd from dartmouth.edu,
  266. in pub/gnuplot, as manual.ps.Z and tutorial.ps.Z
  267.  
  268.  
  269. Section 3: Working with it
  270.  
  271. Q3.1: How do I get help?
  272.  
  273. Give the 'help' command at the initial prompt.  After that, keep
  274. looking through the keywords.  Good starting points are 'plot'
  275. and 'set'.
  276.  
  277. Read the manual, if you have it.
  278.  
  279. Ask your colleagues, the system administrator or the person who set
  280. up gnuplot.
  281.  
  282. Post a question to comp.graphics.gnuplot or send mail to the gatewayed
  283. mailing list info-gnuplot@dartmouth.edu.  If you want to subscribe to
  284. the mailing list, send mail to info-gnuplot-request@dartmouth.edu,
  285. but please don't do this if you can get comp.graphics.gnuplot directly.
  286. If you pose a question there, it is considered good form to solicit
  287. e-mail replies and post a summary.
  288.  
  289. Q3.2: How do I print out my graphs?
  290.  
  291. The kind of output produced is determined by the 'set terminal' command;
  292. for example, 'set terminal postscript' will produce the graph in
  293. PostScript format.  Output can be redirected using the 'set output'
  294. command.
  295.  
  296. As an example, the following prints out a graph of sin(x) on a UNIX
  297. machine running X - Windows.
  298.  
  299. gnuplot> plot [-6:6] sin(x)
  300. gnuplot> set terminal postscript
  301. Terminal type set to 'postscript'
  302. Options are 'landscape monochrome "Courier" 14'
  303. gnuplot> set output "sin.ps"
  304. gnuplot> replot
  305. gnuplot> set output                      # set output back to default
  306. gnuplot> set terminal x11                # ditto for terminal type
  307. gnuplot> ! lp -ops sin.ps                # print ps - File (site dependent)
  308. request id is lprint-3433 (standard input)
  309. lp: printed file sin.ps on fg20.rz.uni-karlsruhe.de (5068 Byte)
  310. !
  311. gnuplot>
  312.  
  313. Q3.3: How do I include my graphs in <word processor>?
  314.  
  315. Basically, you save your plot to a file in a format your word processor
  316. can understand (using "set term" and "set output", see above), and then
  317. you read in the plot from your word processor.
  318.  
  319. Details depend on the kind of word processor you use; use "set term" to
  320. get a list of available file formats.
  321.  
  322. Many word processors can use Encapsulated PostScript for graphs.  This
  323. can be generated by the 'set terminal postscript eps' command.  Most
  324. MS-DOS word processors understand HPGL (terminal type hpgl).
  325.  
  326. With TeX, it depends on what you use to print your dvi files.  If you
  327. use dvips or dvi2ps, you can use Encapsulated PostScript.  For
  328. emTeX (popular for MS-DOS), you can use emTeX, otherwise use the
  329. LaTeX terminal type, which generates a picture environment.
  330.  
  331. If nothing else helps, try using the pgm or ppm format and converting it
  332. to a bitmap format your favourite word processor can understand.  An
  333. invaluable tool for this is Jef Poskanzer's PBMPLUS package.
  334.  
  335.  
  336. Section 4:  Wanted Features in gnuplot
  337.  
  338. Q4.1: Does gnuplot have hidden line removal?
  339.  
  340. Version 3.3 supports hidden line removal on all platforms except MS-DOS.
  341. If someone can solve the 64K DGROUP memory problem, it would support
  342. hidden line removal there as well.  Version 3.2 supports hidden line
  343. removal.
  344.  
  345. Q4.2: Does gnuplot support boxes?
  346.  
  347. Version 3.4 will.
  348.  
  349.  
  350. Section 5:  Miscellaneous
  351.  
  352. Q5.1: I've found a bug, what do I do?
  353.  
  354. First, try to see whether it actually is a bug, or whether it is a feature
  355. which may be turned off by some obscure set - command.  If you have a
  356. fairly general sort of bug report, posting to comp.graphics.gnuplot is
  357. probably the way to go.  If you have investigated a problem in detail,
  358. especially if you have a context diff that fixes the problem, please
  359. e-email a report to bug-gnuplot@dartmouth.edu.  The bug-gnuplot list
  360. is for reporting and collecting bug fixes, the comp.graphics.gnuplot
  361. mailing list will be more help for finding work arounds or actually
  362. solving gnuplot related problems.  If you do send in a bug report, be
  363. sure and include the version of gnuplot (including patchlevel), terminal
  364. driver, operating system, an exact description of the bug and input
  365. which can reproduce the bug.  Also, any context diffs should be
  366. referenced against the latest official version of gnuplot if at all
  367. possible.
  368.  
  369. Q5.2: Can I use gnuplot routines for my own programs?
  370.  
  371. Yes.  John Campbell <jdc@nauvax.ucc.nau.edu> has written gplotlib, a
  372. version of gnuplot as C subroutines callable from a C program.  This is
  373. available as gplotlib.tar.Z on the machine ftp.nau.edu in the directory
  374. /pub/gplotlib.tar.Z.  It is also included in the gpcontrb distribution
  375. in the campbell subdirectory.
  376.  
  377. Q5.3: What extensions have people made to gnuplot?  Where can I get them?
  378.  
  379. Extensions have been put into the file gpcontrb.tar.z, which will
  380. officially be available with the 3.4 release.  If you are lucky, you
  381. will be able to download it from:
  382.  
  383.     ftp.cygnus.com:~ftp/pub/incoming/gpcontrb.tar.z
  384.  
  385. That directory is not readable, but getting the file actually works.
  386. Note that it is 2.5 megabytes and compressed using gzip.  The gzip
  387. program is available from everywhere where you can find GNU software.
  388. The main distribution site is prep.ai.mit.edu [18.71.0.38], in the
  389. directory /pub/gnu.
  390.  
  391. For European users, gpcontrb is also available from 
  392.  
  393.     src.doc.ic.ac.uk:/pub/packages/gnuplot/gpcontrb.tar.Z
  394.  
  395. It contains the following subdirectories:
  396.  
  397. bigler subdirectory:
  398.     From: bigler@cicg-calcul.grenet.fr
  399.     Subject: Multiple plots from a FORTRAN program
  400. budelsky subdirectory:
  401.     From: budelsky@haegar.ikp.uni-koeln.de
  402.     Subject: This is the information file for porting GNUPLOT 3.2
  403.         to OS-9/68000
  404. byrne subdirectory:
  405.     From: "Margaret R. Byrne" <mrb2j@kelvin.seas.virginia.edu>
  406.     Subject: congp3d3 preprocessor to draw contour plots on
  407.         irregular regions.
  408. clark subdirectory:
  409.     From: Michael Clark <clarkmp@prony.Colorado.EDU>
  410.     Subject: data filtering: adds point_skip & point_offs
  411. clift subdirectory:
  412.     From: ssclift@neumann.uwaterloo.ca (Simon Clift)
  413.     Subject: Re: Running Gnuplot from FORTRAN, (and C)
  414. green subdirectory:
  415.     From: Roque Donizete de Oliveira <oliveria@engin.umich.edu>
  416.     Subject: Postscript greek symbols in gnuplot, new prologue
  417. hanna subdirectory:
  418.     From: gregor@kafka.saic.com (gregg hanna)
  419.     Subject: x11-library mode, gnulib_x11.[c,h], xlibtest.c,makefile.xlib
  420. klosowski subdirectory:
  421.     From:   Carsten Steger <stegerc@informatik.tu-muenchen.de>
  422.     Subject: New file "klein.dat"
  423.     From: przemek@rrdstrad.nist.gov (Przemek Klosowski)
  424.     Subject: calling GNUplot from Fortran
  425. kocaturk subdirectory:
  426.     From: mustafa@seas.smu.edu (Mustafa Kocaturk)
  427.     Subject: Histograms in Gnuplot
  428. richardson subdirectory:
  429.     From: amr@chiton.ucsd.edu (Tony Richardson)
  430.     Subject: Programmatic control of gnuplot from UNIX
  431. rosendorf subdirectory:
  432.     From:  prf@jprix.che.wisc.edu
  433.     Subject: Multiple plots on a page
  434. vanzandt subdirectory:
  435.     From: James R. Van Zandt <jrv@mitre-bedford.ARPA>
  436.     Subject: Spline generating program
  437. white subdirectory:
  438.     From: gwhite@bionet.bio.dfo.ca
  439.     Subject: Gnuplot 3.2 for Titan 3000
  440. woo subdirectory:
  441.     From: "Alex Woo" <woo@ra-next.arc.nasa.gov>
  442.     Subject: two additional title lines and fixes to errorbar style
  443. yamamoto subdirectory:
  444.         From: "NOBORU YAMAMOTO     " <sun!kekvax.kek.jp!YAMAMOTO@pixar.com>
  445.     Subject: Re: gnuplot on Apple Macintosh, "diff -c" of version 3.0
  446.         (now includes binaries)
  447.  
  448. Q5.4: Can I do heavy - duty data processing with gnuplot?
  449.  
  450. Gnuplot alone is not suited very well for this.  One thing you might try
  451. is fudgit, an interactive multi-purpose fitting program written by
  452. Martin-D. Lacasse.  It can use gnuplot as its graphics back-end and is
  453. available from ftp.physics.mcgill.ca:/pub/Fudgit/fudgit_2.31.tar.Z
  454. [132.206.9.13], and from the main Linux server, tsx-11.mit.edu
  455. [18.172.1.2] and its numerous mirrors around the world as
  456. /pub/linux/sources/usr.bin/fudgit-2.31.tar.z.  Versions are available
  457. for AIX, Data General, HP-UX, IRIX 4, Linux, NeXT, Sun3, Sun4 and Ultrix.
  458.  
  459. You might also want to look at the applications developed by the
  460. Software Tools Group (STG) at the National Center for Supercomputing
  461. Applications.  Ftp to ftp.ncsa.uiuc.edu [141.142.20.50] and get the
  462. file README.BROCHURE for more information.
  463.  
  464. Q5.5: I have ported gnuplot to another system, or patched it.  What do I do?
  465.  
  466. If your patch is small, mail it to bug-gnuplot@dartmouth.edu, with
  467. a thorough description of what the patch is supposed to do, which version
  468. of gnuplot it is relative to, etc.  Please don't mail it to the FAQ
  469. maintainer.
  470.  
  471. If your modifications are extensive (such as a port to another system),
  472. upload your modifications to dartmouth.edu:/pub/dropoff.  Please drop a
  473. note to David.Kotz@dartmouth.edu, the maintainer of the gnuplot
  474. subdirectory there, plus a note to bug-gnuplot@dartmouth.edu.
  475.  
  476. Q5.6: Where can I get a beta version of gnuplot 3.3?
  477.  
  478. You should be able to get it from one of the following sites (not
  479. necessarily all of them):
  480.  
  481. sun.soe.clarkson.edu:~ftp/submit/gnuplot3_3b??.tar.Z
  482. cygnus.com:~ftp/incoming/gnuplot3_3b??.tar.Z
  483. rsm2.physics.uiuc.edu:~ftp/pub/gnuplot/gnuplot3_3b??.tar.Z
  484.  
  485. (where the ?? part is subject to change).
  486.  
  487.  
  488. Section 6: Making life easier
  489.  
  490. Q6.1: How do I plot two functions in non - overlapping regions?
  491.  
  492. Use a parametric plot.  An example:
  493.  
  494. set parametric
  495. a=1
  496. b=3
  497. c=2
  498. d=4
  499. x1(t) = a+(b-a)*t
  500. x2(t) = c+(d-c)*t
  501. f1(x) = sin(x)
  502. f2(x) = x**2/8
  503. plot [t=0:1] x1(t),f1(x1(t)) title "f1", x2(t), f2(x2(t)) title "f2"
  504.  
  505. Q6.2: How do I run my data through a filter before plotting?
  506.  
  507. If your system supports the popen() - function, as UNIX does, you should
  508. be able to run the output through another process such as a short awk
  509. program (use the "help plot datafile" command for an example).
  510. Unfortunately, in 3.2, there is a rather short limitation on the maximum
  511. argument length, so your command line may be truncated (usually, this
  512. will mean that awk cannot find the filename).  Also, you may need to
  513. escape the $ - characters in your awk programs.
  514.  
  515. Version 3.4 will include the thru - keyword for the plot command for
  516. running data files through a gnuplot - defined function.
  517.  
  518. Q6.3: How do I make it easier to use gnuplot with LaTeX?
  519.  
  520. There is a set of LaTeX macros and shell scripts that are meant to
  521. make your life easier when using gnuplot with LaTeX.  This package can
  522. be found on dartmouth.edu [129.170.16.4] in pub/gnuplot/latex.shar, by
  523. David Kotz.  For example, the program "plotskel" can turn a
  524. gnuplot-output file plot.tex into a skeleton file skel.tex, that has
  525. the same size as the original plot but contains no graph.  With the
  526. right macros, the skeleton can be used for preliminary LaTeX passes,
  527. reserving the full graph for later passes, saving tremendous amounts
  528. of time.
  529.  
  530. Q6.4: Why does gnuplot ignore my very small numbers?
  531.  
  532. Gnuplot treats all numbers less than 1e-08 as zero, by default.  Thus,
  533. if you are trying to plot a collection of very small numbers, they may
  534. be plotted as zero.  Worse, if you're plotting on a log scale, they will
  535. be off scale.  Or, if the whole set of numbers is "zero", your range may
  536. be considered empty:
  537.  
  538. gnuplot> plot 'test1'
  539. Warning: empty y range [4.047e-19:3e-11], adjusting to [-1:1]
  540. gnuplot> set yrange [4e-19:3e-11]
  541. gnuplot> plot 'test1'
  542.                      ^
  543.          y range is less than `zero`
  544.  
  545. The solution is to change gnuplot's idea of "zero":
  546.     set zero 1e-20
  547. For more information,
  548.     help set zero
  549.  
  550. Q6.5: How do I save and restore my settings?
  551.  
  552. Use the "save" and "load" commands for this; see "help save" and
  553. "help load" for details.
  554.  
  555.  
  556. Section 7: Credits
  557.  
  558. This list was initially compiled by John Fletcher with contributions
  559. from Russell Lang, John Campbell, David Kotz, Rob Cunningham,
  560. Daniel Lewart and Alex Woo.  Reworked by Thomas Koenig from a draft by
  561. Alex Woo, with corrections and additions from Alex Woo, John Campbell,
  562. Russell Lang, David Kotz and Daniel Lewart.
  563. -- 
  564. Thomas Koenig, ig25@rz.uni-karlsruhe.de, ig25@dkauni2.bitnet
  565. The joy of engineering is to find a straight line on a double
  566. logarithmic diagram.
  567.